export const isDev = process.env.NODE_ENV === 'development';

const host = import.meta.env.VITE_MODE_HOST;

const name = import.meta.env.VITE_MODE_NAME;

let baseURL = '';
let safe = '';

if (isDev) {
  baseURL = 'qb-dev.yougonghz.com/manages';
  safe = 's';
} else {
  baseURL = `${host}/manages`;
  safe = 's';
}

export const server = {
  baseURL,
  safe,
};
